package emtext;

import javax.swing.*;
import java.util.zip.Deflater;

public abstract class Employee {
    private String name;
    private int id;
    public Employee(int id, String name) {
        this.id = id;
        this.name = name;
    }
    public abstract double calculateSalary();
    public  void displayInfo() {
        System.out.println("Name: " + name + " ID: " + id);
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
